package easier.window.picker;

import easier.window.picker.PickerFragment.ActionListener;
import easier.window.picker.PickerFragment.Func;
import java.util.List;

public class PickerFactory {

    public static < T > PickerFragment< T > build( CharSequence title, List< T > dataList, Func< T > func,
        ActionListener< T > actionListener ) {

        PickerFragment< T > fragment = new PickerFragment<>();
        fragment.setTitle( title );
        fragment.setList( dataList );
        fragment.setFunc( func );
        fragment.setActionListener( actionListener );
        return fragment;
    }
}
